Repository navigation
MOBILE-650: Confirm push delivery by calling callbacks.deliveredUrl - #846
Merged
Merged
Conversation
added 8 commits
November 19, 2026 16:08
There was a problem hiding this comment.
🟡 Changes recommended
The change breaks compatibility with the existing seven-argument JVM constructor and appends delivery-time offsets after URL fragments, preventing those corrections from reaching the server.
2 open issues
What changed in this PR
This PR adds push-delivery confirmations to the Android SDK using callbacks.deliveredUrl, integrating them with the persistent event queue and background delivery.
Changes:
- Parses and validates HTTPS delivery callback URLs from push payloads.
- Adds dedicated confirmation requests, queue routing, and retry handling.
- Tests callback parsing, request behavior, persistence, and delivery before initialization.
| File | Description |
|---|---|
| sdk/src/test/java/cloud/mindbox/mobile_sdk/pushes/MindboxPushConverterTest.kt | Tests callback extraction and malformed payload handling. |
| sdk/src/test/java/cloud/mindbox/mobile_sdk/pushes/DeliveredUrlTest.kt | Tests URL validation and query preservation. |
| sdk/src/test/java/cloud/mindbox/mobile_sdk/network/PushDeliveredRequestTest.kt | Tests confirmation requests, responses, and timeout settings. |
| sdk/src/test/java/cloud/mindbox/mobile_sdk/MindboxTest.kt | Tests confirmation triggering on push receipt. |
| sdk/src/test/java/cloud/mindbox/mobile_sdk/managers/WorkerDelegateTest.kt | Tests dedicated routing and postponed delivery. |
| sdk/src/test/java/cloud/mindbox/mobile_sdk/managers/PushDeliveredManagerTest.kt | Tests offsets and response handling. |
| sdk/src/test/java/cloud/mindbox/mobile_sdk/managers/MindboxEventManagerTest.kt | Tests queueing, initialization independence, and operation isolation. |
| sdk/src/test/java/cloud/mindbox/mobile_sdk/managers/GatewayManagerPushDeliveredTest.kt | Tests exclusion from the operations gateway. |
| sdk/src/test/java/cloud/mindbox/mobile_sdk/converters/MindboxRoomConverterTest.kt | Tests delivery-event persistence compatibility. |
| sdk/src/main/java/cloud/mindbox/mobile_sdk/pushes/PushNotificationManager.kt | Passes validated callback URLs on receipt. |
| sdk/src/main/java/cloud/mindbox/mobile_sdk/pushes/PushCallbacks.kt | Defines the callback payload model. |
| sdk/src/main/java/cloud/mindbox/mobile_sdk/pushes/MindboxRemoteMessage.kt | Adds an optional delivery URL. |
| sdk/src/main/java/cloud/mindbox/mobile_sdk/pushes/MindboxPushConverter.kt | Extracts delivery URLs from callbacks. |
| sdk/src/main/java/cloud/mindbox/mobile_sdk/pushes/DeliveredUrl.kt | Wraps validated URLs and appends query parameters. |
| sdk/src/main/java/cloud/mindbox/mobile_sdk/network/PushDeliveredRequest.kt | Implements dedicated confirmation POST requests. |
| sdk/src/main/java/cloud/mindbox/mobile_sdk/models/Requests.kt | Extracts reusable request-header construction. |
| sdk/src/main/java/cloud/mindbox/mobile_sdk/models/Event.kt | Adds delivery events and shared offset calculation. |
| sdk/src/main/java/cloud/mindbox/mobile_sdk/Mindbox.kt | Queues confirmations through internal push receipt handling. |
| sdk/src/main/java/cloud/mindbox/mobile_sdk/managers/WorkerDelegate.kt | Routes confirmations to their dedicated manager. |
| sdk/src/main/java/cloud/mindbox/mobile_sdk/managers/PushDeliveredManager.kt | Sends confirmations and classifies delivery outcomes. |
| sdk/src/main/java/cloud/mindbox/mobile_sdk/managers/MindboxEventManager.kt | Persists and attempts immediate confirmation delivery. |
| sdk/src/main/java/cloud/mindbox/mobile_sdk/managers/GatewayManager.kt | Guards against delivery events and reuses offset calculation. |
| sdk/src/main/java/cloud/mindbox/mobile_sdk/Extensions.kt | Adds HTTPS URL validation. |
| sdk/src/main/java/cloud/mindbox/mobile_sdk/di/modules/MindboxModule.kt | Exposes the delivery manager dependency. |
| sdk/src/main/java/cloud/mindbox/mobile_sdk/di/modules/DataModule.kt | Constructs the delivery manager. |
Review effort: Balanced
enotniy
approved these changes
Nov 19, 2026
enotniy
reviewed
Nov 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


https://tracker.yandex.ru/MOBILE-650